﻿using Guoc.BigMall.Domain.ValueObject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Guoc.BigMall.Domain.Service
{
   public interface ICodeSequenceService
    {
        /// <summary>
        ///  生成18位唯一单号规则 ： 单据类型 2 +（日期20160101） 8 位+  账号3位+ 3位随机 =  18位长度
        /// </summary>
        /// <param name="billType"></param>
        /// <param name="createdBy"></param>
        /// <returns></returns>
        string NewCode(BillIdentity billType,int createdBy);
    }
}
